package com.nanmeishu.services.tale.controller;


import com.nanmeishu.infrastructure.web.entity.ResponseResult;
import com.nanmeishu.infrastructure.web.util.ResultUtil;
import com.nanmeishu.services.tale.entity.Statu;
import com.nanmeishu.services.tale.facade.StatuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/tale/statu")
@RestController
public class StatuController {
    @Autowired
    private StatuService statuService;

    @GetMapping("/listStatu")
    public ResponseResult listStatu() {
        List<Statu> status = statuService.listPageStatu();
        return ResultUtil.success(status);
    }
}
